package com.zhiwei.codesecurity.common.enums;

import com.zhiwei.codesecurity.common.base.IEnum;

public enum TaskStatus implements IEnum {
    UNSUBMIT(0, "未提交"),
    QUEUED(1, "扫描排队中"),
    WORKING(2, "扫描执行中"),
    FINISHED(3, "扫描完成"),
    FAILED(4, "扫描失败"),
    CANCELED(5, "扫描取消"),
    DELETED(6, "扫描删除"),
    UNKNOWN(7, "扫描状态未知"),
    UNZIPPING(8, "扫描未解压"),
    WAITING_TO_PROCESS(9, "扫描等待处理"),;


    private Integer key;
    private String value;

    private TaskStatus(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public Integer getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
